<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>积分平台</title>
		<meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1, user-scalable=no">
		<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=0">
        <meta name="apple-mobile-web-app-capable" content="yes">
        <meta name="apple-mobile-web-app-status-bar-style" content="black">
		<link rel="stylesheet" type="text/css" href="__INDEX__/mui/css/mui.min.css"/>
		<link rel="stylesheet" type="text/css" href="__INDEX__/css/iconfont.css"/>
		<link rel="stylesheet" type="text/css" href="__INDEX__/css/common.css"/>
		<link rel="stylesheet" type="text/css" href="__INDEX__/css/core.css"/>
		<script src="__INDEX__/js/lib/font.js" type="text/javascript" charset="utf-8"></script>
	</head>
	<body>
	    <div class="mui-content">
	    	<div class="info" >
	    		<div class="info-left mui-pull-left">
	    			<div class="head-portrait" data-color="#86F3FF" style="border-radius:50%;width: 75px;height: 75px;overflow: hidden;position: relative;">
		        		<!--<span class="portrait-name">杨盼盼</span>-->
						{if $user['portrait']}
						<img src="{:getImg($user['portrait'])}" width="100%" style="position: absolute;left: 0;top: 0;"/>
						{else}
						<img src="__INDEX__/images/touxiang.jpg" width="100%" style="position: absolute;left: 0;top: 0;"/>
						{/if}
		       		</div>
	    		</div>
	    		<div class="info-right mui-pull-left">
	        		<p class="info-right-text">
	        			<span class="name mui-pull-left">{$user['nickname']}</span>
	        			<span class="depName mui-pull-right">{$user['company_name']}</span>
	        		</p>
	        		<p>
	        			<span class="name">{$user['departmen_name']}/{$user['position_name']}</span>
	        		</p>
	        		<div class="myPoints">
	        			<p class="mui-pull-left">
	        				<img class="tubiao1" src="__INDEX__/images/core-dianzan.png"/>
	        				<span class="cisu">{$user['fabulous']}</span>
	        			</p>
	        			<p class="mui-pull-right">
	        				<img class="tubiao2" src="__INDEX__/images/core-jifen.png"/>
	        				<span class="cisu">{$user['integral']}</span>
	        			</p>
	        		</div>
	        	</div>
	        	<a href="{:url('index/info')}" class=" mui-pull-right">
    				<i class="mui-icon mui-icon-forward"></i>
    			</a>
	    	</div>
	        <div class="modular">
	        	<div class="nickname">
	        		<a href="{:url('index/coreIntManage')}">
		        		<span class="mui-pull-left">积分管理</span>
		        		<i class="mui-pull-right mui-icon mui-icon-forward"></i>
			        </a>
		        </div>
	        </div>
	        <div class="modular">
	        	<div class="nickname">
	        		<a href="{:url('index/checkWork')}?type=personal">
		        		<span class="mui-pull-left">我的考勤</span>
		        		<i class="mui-pull-right mui-icon mui-icon-forward"></i>
			        </a>
		        </div>
	        </div>
	        <div class="modular">
	        	<div class="nickname">
	        		<a href="{:url('index/coreIntegral')}">
		        		<span class="mui-pull-left">我的积分</span>
		        		<i class="mui-pull-right mui-icon mui-icon-forward"></i>
			        </a>
		        </div>
	        </div>
	        <div class="modular">
	        	<div class="nickname">
	        		<a href="{:url('index/coreMsg')}">
		        		<span class="mui-pull-left">消息通知</span>{if $news>0}<b class="jiaobiao mui-badge mui-badge-danger">{$news}</b>
						{/if}
		        		<i class="mui-pull-right mui-icon mui-icon-forward"></i>
			        </a>
		        </div>
	        </div>
	    </div>
	    <nav class="mui-bar mui-bar-tab footer">
	        <a class="mui-tab-item">
	            <span class="mui-icon mui-icon-home"></span>
	            <span class="mui-tab-label">首页</span>
	        </a>
	        <a class="mui-tab-item">
	            <i class="mui-icon iconfont">&#xe7bd;</i>
	            <span class="mui-tab-label">积分榜</span>
	        </a>
	        <a class="mui-tab-item">
	            <i class="mui-icon iconfont">&#xe64e;</i>
	            <span class="mui-tab-label">平台使用</span>
	        </a>
	        <a class="mui-tab-item">
				<i class="mui-icon iconfont">&#xe649;</i>
				<span class="mui-tab-label">个人中心</span>
				{if $newsshu}
				<b class="mui-badge mui-badge-danger weidu" style="position: absolute;top:.03rem;right:.2rem">
					{$newsshu}
				</b>
				{else}
				<b class="mui-badge mui-badge-danger weidu" style="position: absolute;top:.03rem;right:.2rem;display: none">
				</b>
				{/if}
			</a>
	    </nav>
		<script src="__INDEX__/js/lib/zepto.js" type="text/javascript" charset="utf-8"></script>
		<script src="__INDEX__/mui/js/mui.min.js" type="text/javascript" charset="utf-8"></script>
		<script src="__INDEX__/mui/js/mui.view.js" type="text/javascript" charset="utf-8"></script>
		<script src="__INDEX__/layer_mobile/layer.js" type="text/javascript" charset="utf-8"></script>
		<script src="__INDEX__/js/common.js" type="text/javascript" charset="utf-8"></script>
		<script src="__INDEX__/js/core.js" type="text/javascript" charset="utf-8"></script>
		<script>
			setInterval(function(){
			    var $num = parseInt(Math.random()*9)+1;
			    $.post("/index/Message/index"+$num,{},function(data){
			        console.log(data);
			        if(data.code==200){
			            if(data.data!=0){
                            $(".weidu").css("display",'block');
                            $(".weidu").text(data.data);
						}else{
                            $(".weidu").css("display",'none');
						}
					}
				});
			},60000);

		</script>
	</body>
</html>
